/**
 * 
 */
package com.surelution.lansao.wxmp

import com.surelution.whistle.core.Attribute;
import com.surelution.whistle.core.BaseAction

/**
 * @author <a href="mailto:guangzong.syu@gmail.com">Guangzong</a>
 *
 */
class UnsubscribeAction extends BaseAction {

	/* (non-Javadoc)
	 * @see com.surelution.whistle.core.BaseAction#accept()
	 */
	@Override
	public boolean accept() {
		return "event" == getParam(Attribute.KEY_MsgType) && "unsubscribe" == getParam("Event")
	}

	/* (non-Javadoc)
	 * @see com.surelution.whistle.core.BaseAction#execute()
	 */
	@Override
	public void execute() {
		println "someone unsubscribed"
	}

}
